<?php

Raise::load('core.RaiseDataType');
Raise::load('core.RaiseCollection');

/**
 * RaiseTreeNode class
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package phpraise.core.structure
 * @since 1.2
 */
class RaiseTreeNode extends RaiseDataType {

    /**
     * The children nodes of this sub-tree
     * @var RaiseCollection
     */
    protected $children;

    /**
     * Create a new RaiseTreeNode
     */
    public function __construct(){
        $this->children = new RaiseCollection();
    }

    /**
     * Get the children nodes of this node
     * @return RaiseCollection
     */
    public function children(){
        return $this->children;
    }
    
}